package clockIn

import (
	"clockIn/internal/service"
	"context"

	"clockIn/api/clockIn/v1"
)

func (c *ControllerV1) GetList(ctx context.Context, req *v1.GetListReq) (res *v1.GetListRes, err error) {
	list, total := service.ClockIn().List(ctx, req.ClockInCreateModel)
	res = &v1.GetListRes{
		list,
		total,
	}
	return
}
